import 'package:color_dart/RgbaColor.dart';
import 'package:flutter/material.dart';
import 'package:im_flutter_sdk_example/utils/global.dart';

class NeedItem extends StatelessWidget {
  const NeedItem({Key key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Container(
      padding: EdgeInsets.fromLTRB(16, 18, 16, 10),
      decoration: BoxDecoration(border: G.borderBottom()),
      child: Column(
        mainAxisAlignment: MainAxisAlignment.spaceBetween,
        crossAxisAlignment: CrossAxisAlignment.start,
        children: [
          Text(
            '寻找种植法国丁香的技术',
            style: TextStyle(
                color: rgba(68, 68, 68, 1),
                fontSize: 16,
                fontWeight: FontWeight.w600),
          ),
          Padding(
            padding: EdgeInsets.fromLTRB(0, 4, 0, 3),
            child: Text(
              '数字园区借助物联网、大数据、人工智数字园区借助物联网、大数据、人工智能等 ICT 技术科技为园区赋能数字园区借助物联网、大数据、人工',
              style: TextStyle(color: rgba(51, 51, 51, 1), fontSize: 13),
              maxLines: 2,
              overflow: TextOverflow.ellipsis,
            ),
          ),
          Row(
            mainAxisAlignment: MainAxisAlignment.spaceBetween,
            crossAxisAlignment: CrossAxisAlignment.center,
            children: [
              Text(
                '需求类型：选址落地',
                style: TextStyle(color: rgba(163, 163, 163, 1), fontSize: 12),
              ),
              Text(
                '发布时间：2021.02.15',
                style: TextStyle(color: rgba(163, 163, 163, 1), fontSize: 12),
              ),
              Row(
                children: [
                  Text(
                    '预算：',
                    style:
                        TextStyle(color: rgba(163, 163, 163, 1), fontSize: 12),
                  ),
                  Text(
                    '面议',
                    style: TextStyle(
                      color: rgba(235, 101, 13, 1),
                      fontSize: 14,
                    ),
                  )
                ],
              )
            ],
          )
        ],
      ),
    );
  }
}
